package de.zainodis.authorlist.model.parsing;

import java.util.Collection;

import de.zainodis.authorlist.core.Application;
import de.zainodis.authorlist.model.AuthorLibraryComponent;
import de.zainodis.authorlist.model.Book;

public class BookParser extends AuthorsCreationParser<Book> {

   @Override
   protected Book createNew() {
	 return new Book();
   }

   @Override
   public void processParsedElements(Collection<Book> items) {
	AuthorLibraryComponent component = Application.getComponent(AuthorLibraryComponent.class);
	component.addMappings(items);
   }

}
